<?PHP
global $conf;
$media= new media;
if(!empty($_GET['mode']))
{
	$media->mode=$_GET['mode'];
}
if(!empty($_GET['content_product']))
{
	$media->content_product=$_GET['content_product'];
}
if(!empty($_GET['content_option']))
{
	$media->content_option=$_GET['content_option'];
}
if(!empty($_GET['content_parent']))
{
	$media->content_option=$_GET['content_parent'];
}
$md=$media->get_images();
$md=$media->process_content_data();
$media->get_box_running();
$headers[]='ID';
$headers[]='Content Parent';
$headers[]='Gallery';
$headers[]='Title';
$headers[]='Thickbox';
$headers[]='Image URL';
$headers[]='Action';
$show[]='content_id';
$show[]='content_parent';
$show[]='content_gallery';
$show[]='content_title';
$show[]='thickbox';
$show[]='code';

$ajax['Delete']='a/delete_image.php';
	//$ajax['Delete']='a/delete_image.php';

printformheader('Images','Showing Images');


	p_table($headers,$md,$links,"class='tablesorter'",$show,$ajax,FALSE);


?>
<?PHP printformfooter('Back',$conf->ref,NULL,NULL,NULL,NULL); ?>

